package com.giao.service;

import com.giao.mapper.ConProductMapper;
import com.giao.pojo.ContractProductC;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConProductServiceImpl implements ConProductService {
    @Autowired
    public ConProductMapper conProductMapper;

    @Override
    public List<ContractProductC> findAllConProduct() {
        return conProductMapper.findAllConProduct();
    }

    @Override
    public int insertConProduct(ContractProductC contractProductC) {
        return conProductMapper.insertConProduct(contractProductC);
    }

    @Override
    public int deleteConProduct(int contract_product_id) {
        return conProductMapper.deleteConProduct(contract_product_id);
    }

    @Override
    public ContractProductC findByConProductId(int contract_product_id) {
        return conProductMapper.findByConProductId(contract_product_id);
    }


    @Override
    public int updateConProduct(ContractProductC contractProductC) {
        return conProductMapper.updateConProduct(contractProductC);
    }
}
